  function iframeResize()
  {
		var iframeName = arguments[0];
    var iframeObj = arguments[1];
    var addHeight = arguments[2];
    var dyniframe   = null;
    var indexwin    = null;
    if(addHeight==null)addHeight = 20;
    if (document.getElementById)
    {
      dyniframe       = document.getElementById(iframeName);
      indexwin        = window;
      if (dyniframe)
      {
        if (dyniframe.contentDocument)
        { 
          //dyniframe.height = dyniframe.contentDocument.body.scrollHeight + addHeight;
          /**史衍盛将以上代码替换为如下，解决兼容性问题*/
           try{
		    var bHeight = dyniframe.contentDocument.body.scrollHeight;
		    var dHeight = dyniframe.contentDocument.documentElement.scrollHeight;
		    var height = Math.max(bHeight, dHeight);
		    var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
			var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
			var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera ; //判断是否IE浏览器
			var isFF = userAgent.indexOf("Firefox") > -1 ; //判断是否Firefox浏览器
			if(isFF){
				if(dHeight>400){
					dyniframe.height =  dHeight+20;
				}else{
					dyniframe.height=height;
				}	
			}else{
				dyniframe.height=bHeight+10;
			}
		     
		   
		    }catch (ex){}
		    /**史衍盛修改结束2012-4-25*/
		    
          
           
        }
        else if (dyniframe.document && dyniframe.document.body.scrollHeight)
        {
          
          try{
          iframeheight	= iframeObj.document.body.scrollHeight + addHeight;
          dyniframe.height = iframeheight;
          }catch(e)
          {
          	
          }
        }
      }
    }
  }
   function resizeIframe(){
      	if(parent!=null)parent.resizeIframe();
      }